package com.is.add.model;


import javax.persistence.*;
import java.util.Date;

/**
 * 订单
 */
@Entity
@Table(name = "userorder")
public class Orders{
    @Id
    @Column(name = "id")
    private Integer orderId;        //订单ID
    @Column(name = "shop")
    private Integer shopId;        //场馆ID
    @Column(name = "orderNumber")
    private String orderNumber;       //订单编号
    @Column(name = "orderTime")
    private Date orderTime;   //订单时间(用户生成订单的时间)
    @Column(name = "examineTime")
    private Date examineTime;   //消费时间(场次时间)
    @Column(name = "usesTime")
    private Date usesTime;   //验证时间(用户验证时间)
    @Column(name = "isUsed")
    private Integer used;       //是否已使用
    @Column(name = "paySum")
    private Double paySum;      //交易额
    @Column(name = "payType")
    private String payType;    //支付方式
    @Column(name = "orderNum")
    private Integer orderNum;   //订购量|场地数
    @Column(name = "subsidySum")
    private Double subsidySum;  //补贴额
    @Column(name = "subsidyFee")
    private Double subsidyFee; //手续费|服务费
    @Column(name = "fee")
    private Double fee;             //支付服务费
    @Column(name = "exchangeCode")
    private String exchangeCode;    //兑换码
    @Column(name = "userId")
    private Integer userId;         //用户ID
    @Column(name = "payAccount")
    private String payAccount;      //支付帐号
    @Column(name = "status")
    private Integer orderStatus;    //订单状态
    @Column(name = "shopGoodTypeId")
    private Integer shopGoodTypeId; //商品类型ID
    @Column(name = "serialNumber")
    private String  serialNumber;   //交易流水
    @Column(name = "settleStatus")
    private Integer settleStatus;   //结算状态
    @Column(name = "settleTime")
    private Date settleTime;     //结算时间
    @Column(name = "settleNo")
    private String settleNo;       //结算编号
    @Column(name = "settleSum")
    private Double settleSum;      //结算金额
    @Column(name = "subsidyStatus")
    private Integer subsidyStatus;   //补贴状态
    @Column(name = "subsidyTime")
    private Date subsidyTime;    //补贴时间
    @Column(name = "subsidyNo")
    private String subsidyNo;      //补贴编号

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public Date getExamineTime() {
        return examineTime;
    }

    public void setExamineTime(Date examineTime) {
        this.examineTime = examineTime;
    }

    public Date getUsesTime() {
        return usesTime;
    }

    public void setUsesTime(Date usesTime) {
        this.usesTime = usesTime;
    }

    public Integer getUsed() {
        return used;
    }

    public void setUsed(Integer used) {
        this.used = used;
    }

    public Double getPaySum() {
        return paySum;
    }

    public void setPaySum(Double paySum) {
        this.paySum = paySum;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Double getSubsidySum() {
        return subsidySum;
    }

    public void setSubsidySum(Double subsidySum) {
        this.subsidySum = subsidySum;
    }

    public Double getSubsidyFee() {
        return subsidyFee;
    }

    public void setSubsidyFee(Double subsidyFee) {
        this.subsidyFee = subsidyFee;
    }

    public Double getFee() {
        return fee;
    }

    public void setFee(Double fee) {
        this.fee = fee;
    }

    public String getExchangeCode() {
        return exchangeCode;
    }

    public void setExchangeCode(String exchangeCode) {
        this.exchangeCode = exchangeCode;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getPayAccount() {
        return payAccount;
    }

    public void setPayAccount(String payAccount) {
        this.payAccount = payAccount;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Integer getShopGoodTypeId() {
        return shopGoodTypeId;
    }

    public void setShopGoodTypeId(Integer shopGoodTypeId) {
        this.shopGoodTypeId = shopGoodTypeId;
    }

    public String getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }

    public Integer getSettleStatus() {
        return settleStatus;
    }

    public void setSettleStatus(Integer settleStatus) {
        this.settleStatus = settleStatus;
    }

    public Date getSettleTime() {
        return settleTime;
    }

    public void setSettleTime(Date settleTime) {
        this.settleTime = settleTime;
    }

    public String getSettleNo() {
        return settleNo;
    }

    public void setSettleNo(String settleNo) {
        this.settleNo = settleNo;
    }

    public Double getSettleSum() {
        return settleSum;
    }

    public void setSettleSum(Double settleSum) {
        this.settleSum = settleSum;
    }

    public Integer getSubsidyStatus() {
        return subsidyStatus;
    }

    public void setSubsidyStatus(Integer subsidyStatus) {
        this.subsidyStatus = subsidyStatus;
    }

    public Date getSubsidyTime() {
        return subsidyTime;
    }

    public void setSubsidyTime(Date subsidyTime) {
        this.subsidyTime = subsidyTime;
    }

    public String getSubsidyNo() {
        return subsidyNo;
    }

    public void setSubsidyNo(String subsidyNo) {
        this.subsidyNo = subsidyNo;
    }
}
